package ssq.utils;

import java.util.HashMap;
import java.util.Map;

import android.content.Context;//#ifdef Android

public class Utilities
{
    static protected Context               appContext;                                       //#ifdef Android
                                                                                              
    public static final Boolean            LOG_ON       = true;
    public static final Boolean            DEBUG_ON     = true;                              //预处理也有debug版的选项
                                                                                              
    public static Map<String, SqlAccesser> sqlAccessers = new HashMap<String, SqlAccesser>();

    public static SqlAccesser addSqliteAccesser(SqlAccesser sqlAccesser)
    {
        sqlAccessers.put(sqlAccesser.dbname, sqlAccesser);
        return sqlAccesser;
    }

    //##ifdef Android
    public static void initContext(Context context)
    {
        appContext = context;
    }
    //##endif
}
